package com.solution.admin.auth.entity;

import java.util.List;

import com.solution.common.entity.BaseEntity;

/**
 * 资源管理
 * @author zhuoyu
 * @version 2017年4月6日
 */
public class ResourceEntity extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 名称
	 */
	private String resourceName;
	
	/**
	 * 类型
	 */
	private String resourceType;

	/**
	 * 描述
	 */
	private String resourceIntro;

	/**
	 * 父级编号
	 */
	private String parentId;

	/**
	 * 排序编号
	 */
	private Integer sortNo;

	/**
	 * 权限命令
	 */
	private String permission;

	/**
	 * 菜单路径
	 */
	private String url;

	/**
	 * 子集
	 */
	private List<ResourceEntity> childList;
	
	/**
	 * 二级菜单json字符串
	 */
	private String childListStr;

	/**
	 * 版本
	 */
	private Integer version;

	/**
	 * 树形结构展示字段
	 */
	private String checked;

	/**
	 * 添加该字段用于shiro权限查询
	 */
	private String roleIdStr;

	/**
	 * 资源图标样式
	 */
	private String iconClass;

	/**
	 * 取得资源图标样式
	 * 
	 * @return
	 */
	public String getIconClass() {
		return this.iconClass;
	}

	/**
	 * 设置资源图标样式
	 * 
	 * @param iconClass
	 *            资源图标样式
	 */
	public void setIconClass(String iconClass) {
		this.iconClass = iconClass;
	}

	
	public List<ResourceEntity> getChildList() {
		return childList;
	}

	public void setChildList(List<ResourceEntity> childList) {
		this.childList = childList;
	}


	public String getChildListStr() {
		return childListStr;
	}

	public void setChildListStr(String childListStr) {
		this.childListStr = childListStr;
	}

	public String getResourceName() {
		return resourceName;
	}

	public void setResourceName(String resourceName) {
		this.resourceName = resourceName;
	}

	public String getResourceType() {
		return resourceType;
	}

	public void setResourceType(String resourceType) {
		this.resourceType = resourceType;
	}

	public String getResourceIntro() {
		return resourceIntro;
	}

	public void setResourceIntro(String resourceIntro) {
		this.resourceIntro = resourceIntro;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public Integer getSortNo() {
		return sortNo;
	}

	public void setSortNo(Integer sortNo) {
		this.sortNo = sortNo;
	}

	public String getPermission() {
		return permission;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public String getRoleIdStr() {
		return roleIdStr;
	}

	public void setRoleIdStr(String roleIdStr) {
		this.roleIdStr = roleIdStr;
	}

	public String getChecked() {
		return checked;
	}

	public void setChecked(String checked) {
		this.checked = checked;
	}
}
